package com.jing.weibo.ws.sina;

import java.util.List;

import org.springframework.stereotype.Component;

import weibo4j.Tags;
import weibo4j.model.Tag;
import weibo4j.model.WeiboException;

/**
 * Tags新浪微博的接口
 * @author jing.yue
 * @version 2012/10/18 1.0.0
 */
@Component
public class TagsService {

	/**
	 * 返回指定用户的标签列表
	 * @param uid			需要查询的用户ID
	 * @param token			授权的token
	 * @return
	 * @throws WeiboException
	 */
	public List<Tag> getTags(String uid, String token) throws WeiboException {
		Tags tags = new Tags();
		tags.setToken(token);
		return tags.getTags(uid);
	}
}
